using SqlSugar;

namespace LowCoding.Domain.Entity
{
    /// <summary>
    /// 模块表（权限表）
    /// </summary>
    [SugarTable("SYSMODULE")]
    public class SysModule
    {
        /// <summary>
        /// 模块ID
        /// </summary>
        [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)]
        public string Id { get; set; }

        /// <summary>
        /// 模块代码
        /// </summary>
        [SugarColumn(ColumnName = "MDLCODE")]
        public string MdlCode { get; set; }

        /// <summary>
        /// 模块名称
        /// </summary>
        [SugarColumn(ColumnName = "MDLNAME")]
        public string MdlName { get; set; }

        /// <summary>
        /// 模块类型
        /// </summary>
        [SugarColumn(ColumnName = "MDLTYPE")]
        public string MdlType { get; set; }

        /// <summary>
        /// 父模块代码
        /// </summary>
        [SugarColumn(ColumnName = "MDLPARENT")]
        public string MdlParent { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        [SugarColumn(ColumnName = "MDLVALID")]
        public string MdlValid { get; set; }

        /// <summary>
        /// 模块链接
        /// </summary>
        [SugarColumn(ColumnName = "MDLURL")]
        public string MdlUrl { get; set; }

        /// <summary>
        /// 模块序号
        /// </summary>
        [SugarColumn(ColumnName = "MDLSEQ")]
        public int MdlSeq { get; set; }

        /// <summary>
        /// 是否平台模块
        /// </summary>
        [SugarColumn(ColumnName = "MDLISP")]
        public string MdlIsp { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        [SugarColumn(ColumnName = "MDLICONCLS")]
        public string MdlIconcls { get; set; }

        /// <summary>
        /// 模块等级
        /// </summary>
        [SugarColumn(ColumnName = "MDLLEVEL")]
        public string MdlLevel { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "REMARK")]
        public string Remark { get; set; }

        /// <summary>
        /// 新增时间
        /// </summary>
        [SugarColumn(ColumnName = "CREATED", IsOnlyIgnoreUpdate = true)]
        public DateTime? Created { get; set; } = DateTime.Now;

        /// <summary>
        /// 新增人员
        /// </summary>
        [SugarColumn(ColumnName = "CREATOR", IsOnlyIgnoreUpdate = true)]
        public string Creator { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "LASTMODIFIED")]
        public DateTime? Lastmodified { get; set; }

        /// <summary>
        /// 修改人员
        /// </summary>
        [SugarColumn(ColumnName = "LASTMODIFIER")]
        public string Lastmodifier { get; set; }

        /// <summary>
        /// 是否删除(1 为删除  0和空 为 未删除)
        /// </summary>
        [SugarColumn(ColumnName = "ISDEL", IsOnlyIgnoreUpdate = true)]
        public string Isdel { get; set; }

        /// <summary>
        /// 修改次数
        /// </summary>
        [SugarColumn(ColumnName = "VERSION")]
        public int Version { get; set; }

        /// <summary>
        /// 区域{0:行编辑,1:工具栏}
        /// </summary>
        [SugarColumn(ColumnName = "REGION")]
        public string Region { get; set; }
    }
}